//
//  InfoCollectionViewController.m
//  Utils
//
//  Created by enghou on 2018/4/20.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "InfoCollectionViewController.h"
#import "RegisteredPopulationListViewController.h"
#import "OuterPopulationListViewController.h"
#import "FloatListViewController.h"
#import "StayBehindPopulationViewController.h"
#import "RealHouseListViewController.h"
#import "RentHouseListViewController.h"
#import "PrivateOrganizationListViewController.h"
#import "PublicOrganizationListViewController.h"
#import "BuildingsManageListViewController.h"
@interface InfoCollectionViewController ()

@end

@implementation InfoCollectionViewController

- (IBAction)showRealPeople:(id)sender {
    RegisteredPopulationListViewController *population = [[RegisteredPopulationListViewController alloc]init];
    population.title = @"户籍人口";
    population.hidesBottomBarWhenPushed = YES;
    [self push:population];
}

- (IBAction)showFlidPeople:(id)sender {
    FloatListViewController *population = [[FloatListViewController alloc]init];
    population.title = @"流动人口";
    population.hidesBottomBarWhenPushed = YES;
    [self push:population];
}

- (IBAction)outerPeople:(id)sender {
    OuterPopulationListViewController *population = [[OuterPopulationListViewController alloc]init];
    population.hidesBottomBarWhenPushed = YES;
    population.modelClsName = @"OtherPeopleItemModel";
    population.path = kGetOuterPeopleList;
    [self push:population];
}

- (IBAction)remainingPeople:(id)sender {
    StayBehindPopulationViewController *population = [[StayBehindPopulationViewController alloc]init];
    population.hidesBottomBarWhenPushed = YES;
    population.title = @"留守人口";
    population.modelClsName = @"OtherPeopleItemModel";
    population.path = kGetLeftPeopleList;
    [self push:population];
}


- (IBAction)showRealHouse:(id)sender {
    RealHouseListViewController *real = [[RealHouseListViewController alloc]init];
    real.title = @"实有房屋";
    real.path = @"/mobile/comprehensiveGovernance/houseInfo/findHouseInfoPage.action";
    real.modelClsName = @"HouseItemModel";
    real.hidesBottomBarWhenPushed = YES;
    [self push:real];
}

- (IBAction)showRentHouse:(id)sender {
    RentHouseListViewController *rent = [[RentHouseListViewController alloc]init];
    rent.title = @"出租房";
    rent.path = @"/mobile/comprehensiveGovernance/houseInfo/findHouseInfoPage.action";
    rent.modelClsName = @"HouseItemModel";
    rent.hidesBottomBarWhenPushed = YES;
    [self push:rent];
}

- (IBAction)showBuilding:(id)sender {
    BuildingsManageListViewController *building = [[BuildingsManageListViewController alloc]init];
    building.path = @"/mobile/comprehensiveGovernance/builddatas/findBuilddatasPage.action";
    building.cellClass = @"BuildingTableViewCell";
    building.modelClsName = @"BuildingItemModel";
    building.hidesBottomBarWhenPushed = YES;
    building.title = @"楼宇管理";
    [self push:building];
}

- (IBAction)showPrivateEconomicOrg:(id)sender {
    PrivateOrganizationListViewController *private = [[PrivateOrganizationListViewController alloc]init];
    private.title = @"非公有经济组织";
    private.cellClass = @"OrganizationCell";
    private.modelClsName = @"OrganizationItemModel";
    private.hidesBottomBarWhenPushed = YES;
    private.path = @"/mobile/comprehensiveGovernance/newEconomicOrganizations/searchAllNewEconomicOrganizationss.action";
    [self push:private];
}

- (IBAction)showNewOrg:(id)sender {
    PublicOrganizationListViewController *private = [[PublicOrganizationListViewController alloc]init];
    private.title = @"新社会组织";
//    SoceityOrganization
    private.cellClass = @"SoceityOrganization";
    private.modelClsName = @"SoceityItemModel";
    private.hidesBottomBarWhenPushed = YES;
    private.path = @"/mobile/comprehensiveGovernance/newSocietyOrganizations/findNewSocietyOrganizationsByQueryCondition.action";
    [self push:private];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
    
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source

@end
